<%--
The Community Project
Copyright Team1 Productions

Joshua Amick
Stephen Cunningham
Thema Davis
Tomika Dawson
Lucie DeCristifaro

This JSP is an implementation of the user interface for the Community Project.  Several
tag libraries and custom libraries are used.

All Rights reserved.
--%>

<%@ page %>
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>

<%-- jstl taglibs --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- struts taglibs --%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%-- custom taglib by Josh --%>
<%@ taglib prefix="custom" tagdir="/WEB-INF/tags/custom" %>

<c:set var="basePath">
	${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}
</c:set>
<c:set var="servletPath">
	${pageContext.request.servletPath}
</c:set>

<base href="${basePath}/" />

<%-- page content --%>
<custom:frame noWrap="true">
	<page:title title="Log In Page"/>
	<div id="loginPage">
		<html:form action="/Login" method="post" enctype="multipart/form-data">
			<div id="styleErrors">
				<c:if test="${not empty ERRORS}">
					${ERRORS}
				</c:if>
			</div>
			<custom:text label="Username" labelStyle="rightLabel" property="username"/>
			<custom:password label="Password" labelStyle="rightLabel" property="password"/>
			<div class="textCenterSubmit"><html:submit value="&nbsp;Login&nbsp;"/></div>
			<div id="centerSignup">
				<br/>Don't have an account?
				<br/><html:link action="/Forward.do?loc=requestUser">Click here to create an account.</html:link>
			</div>
		</html:form>
	</div>
</custom:frame>